package com.share.homestay.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.share.homestay.entity.HostelOrders;
import com.share.homestay.entity.OrderOperationLogs;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface HostelOrdersMapper extends BaseMapper<HostelOrders> {
    List<HostelOrders> findAllHostelOrders(@Param("hostelOrders") HostelOrders hostelOrders,@Param("pageNum") Long pageNum,@Param("pageSize") Long pageSize);

    Long getCount(@Param("hostelOrders") HostelOrders hostelOrders);

    List<OrderOperationLogs> findOrderOperationLogs(@Param("id") String id,@Param("pageNum") Long pageNum,@Param("pageSize") Long pageSize);

    Long countOrderOperationLogs(@Param("id") String id);

    Long addOrderOperationLog(@Param("orderOperationLogs") OrderOperationLogs orderOperationLogs);
}
